package dao

func NewMetadata() *Metadata {
	return &Metadata{
		joinTables: make(map[string]bool),
	}
}

type Metadata struct {
	joinTables map[string]bool
}

func (cls *Metadata) AddJoinTable(table string) *Metadata {
	cls.joinTables[table] = true

	return cls
}

func (cls *Metadata) HasJoinTable(table string) bool {
	return cls.joinTables[table]
}
